<form id="field_add-form" class="field_add-form form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <!-- <div class="form-group form-input form-input-target">
		<label class="control-label col-xs-12 col-sm-2">打开位置</label>
		<div class="col-xs-12 col-sm-5">
			<select id="c-flag" class="form-control "  name="row[position]" style="height:31px;">
				<option value="1">分类630x270</option>
			</select>
		</div>
	</div> -->
	<div class="form-group form-input form-input-target">
		<label class="control-label col-xs-12 col-sm-2">显示位置</label>
		<div class="col-xs-12 col-sm-5">
			<select id="c-flag" class="form-control "  name="row[shop_site]" style="height:31px;">
				<option value="首页"   {if $row.shop_site == '首页'}selected{/if}>首页</option>
				<option value="心愿"   {if $row.shop_site == '心愿'}selected{/if}>心愿</option>
				<option value="我的"   {if $row.shop_site == '我的'}selected{/if}>我的</option>
				<option value="动态"   {if $row.shop_site == '动态'}selected{/if}>动态</option>
				<option value="苏拉首页"   {if $row.shop_site == '苏拉首页'}selected{/if}>苏拉首页</option>
				<option value="动态苏拉"   {if $row.shop_site == '动态苏拉'}selected{/if}>动态苏拉</option>
				<option value="商城banner"   {if $row.shop_site == '商城'}selected{/if}>商城banner</option>
				<option value="首页弹窗"   {if $row.shop_site == '首页弹窗'}selected{/if}>首页弹窗</option>
				<option value="开屏页"   {if $row.shop_site == '开屏页'}selected{/if}>开屏页</option>
				<option value="首页顶部轮播图"   {if $row.shop_site == '首页顶部轮播图'}selected{/if}>首页顶部轮播图</option>
				<option value="爱心榜"   {if $row.shop_site == '爱心榜'}selected{/if}>爱心榜</option>
			</select>
		</div>
	</div>
	<div class="form-group form-input form-input-target">
		<label class="control-label col-xs-12 col-sm-2">跳转类型</label>
		<div class="col-xs-12 col-sm-5">
			<select id="c-flag" class="form-control "  name="row[type]" style="height:31px;">
				<option value="1"   {if $row.type == '1'}selected{/if}>跳转公众号文章</option>
				<option value="2"   {if $row.type == '2'}selected{/if}>跳转其他小程序</option>
				<option value="3"   {if $row.type == '3'}selected{/if}>小程序内部跳转</option>
			</select>
		</div>
	</div>
	<div class="form-group form-input form-input-title">
		<label class="control-label col-xs-12 col-sm-2">标题：</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-name" data-rule="required" class="form-control form-control" placeholder="请输入内容的标题" name="row[title]" type="text" value="{$row.title}">
		</div>
	</div>
	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">图片：</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-imageurl" data-rule="required" class="form-control" size="50" name="row[img]" type="text" value="{$row.img}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-imageurl" class="btn btn-danger plupload" data-input-id="c-imageurl" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-imageurl"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-imageurl" class="btn btn-primary fachoose" data-input-id="c-imageurl" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-imageurl"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-imageurl">
                
            </ul>
        </div>
    </div>
	
	<div class="form-group form-input form-input-linkurl">
		<label class="control-label col-xs-12 col-sm-2">APP跳转URL：</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-table"  class="form-control form-control" placeholder="请输入跳转的URL" name="row[url]" type="text" value="{$row.url}">
		</div>
	</div>
	<div class="form-group form-input form-input-linkurl">
		<label class="control-label col-xs-12 col-sm-2">小程序跳转URL：</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-table"  class="form-control form-control" placeholder="请输入跳转的URL" name="row[xcx_url]" type="text" value="{$row.xcx_url}">
		</div>
	</div>
	<div class="form-group form-input form-input-linkurl">
		<label class="control-label col-xs-12 col-sm-2">小程序跳其他小程序appID：</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-table" class="form-control form-control" placeholder="" name="row[app_appid]" type="text" value="{$row.app_appid}">
		</div>
	</div>
	<div class="form-group form-input form-input-linkurl">
		<label class="control-label col-xs-12 col-sm-2">APP跳其他小程序(原始)appID：</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-table"  class="form-control form-control" placeholder="" name="row[xcx_appid]" type="text" value="{$row.xcx_appid}">
		</div>
	</div>
	<div class="form-group form-input form-input-linkurl">
		<label class="control-label col-xs-12 col-sm-2">其他小程序路径：</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-table"  class="form-control form-control" placeholder="" name="row[xcx_path]" type="text" value="{$row.xcx_path}">
		</div>
	</div>
	<div class="form-group form-input form-input-weigh">
		<label class="control-label col-xs-12 col-sm-2">排序：</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-table" data-rule="required" class="form-control form-control" placeholder="" name="row[ord]" type="number" value="{$row.ord}">
		</div>
	</div>
    <div class="form-group form-input form-input-weigh">
		<label class="control-label col-xs-12 col-sm-2">状态：</label>
		<div class="col-xs-12 col-sm-8">
			<div class="radio">
				<label  ><input class="form-input-type"  name="row[status]" type="radio" value="1" {$row.status==1?"checked='checked'":""}> 显示</label>
				<label ><input  class="form-input-type"   name="row[status]" type="radio" value="0" {$row.status==0?"checked='checked'":""} > 隐藏</label>
			</div>
		</div>
	</div>
	<div class="form-group layer-footer">
		<label class="control-label col-xs-12 col-sm-2"></label>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-success btn-embossed ">{:__('OK')}</button>
			<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
		</div>
	</div>
</form>